﻿<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="BlogsEdit.ascx.cs" Inherits="Micronet.OpenWeb.OpenWeb.Admin.Views.Shared.Blog.BlogsEdit" %>
<owc:OwDetailsView ID="BlogEditDv" runat="server" AutoGenerateRows="False" DataSourceID="BlogEditOds"
    EnableModelValidation="True" OwNotificationID="" SkinID="DetailViewAdmin" DataKeyNames="blogID">
    <Fields>
        <asp:TemplateField>
            <InsertItemTemplate>
                <fieldset>
                    <legend>
                        <owc:OwR ID="GeneralInfo" runat="server" OwText="GeneralInfo"></owc:OwR>
                    </legend>
                    <div>
                        <owac:OwDetailCommonGroup ID="DetailCommonGroup" OwBindLanguageValue='<%# Bind("LanguageCode") %>'
                            OwBindNetworkValue='<%# Bind("NetWorkID") %>' OwBindPortalValue='<%# Bind("PortalID") %>'
                            OwAuthorVisible="false" OwSourceVisible="false" OwWardLocalityVisible="false"
                            OwBindCategoryValue='<%#Bind("CategoryID") %>' runat="server"></owac:OwDetailCommonGroup>
                    </div>
                </fieldset>
                <fieldset>
                    <legend><span>
                        <owc:OwR ID="InfoLabel" runat="server" OwText="InfoLabel"></owc:OwR>
                    </span></legend>
                    <div>
                        <table width="100%">
                            <tr>
                                <td class="leftcolumn">
                                    <owc:OwR ID="OwUserName" runat="server" OwText="UserName" />
                                </td>
                                <td>
                                    <%-- <owc:OwComboBox ID="OwUserNameCbb" runat="server" DataTextField="Name" DataValueField="UserID"
                                        AppendDataBoundItems="True" SelectedValue='<%# Bind("UserID") %>' d>
                                    </owc:OwComboBox>--%>
                                    <owc:OwTextBox SkinID="OwTextBox" ID="Usertxt" runat="server" OwDefaultValue="<%#Membership.GetUser().ProviderUserKey %>"
                                        OwUsedForEdit="False" Text='<%#Membership.GetUser().UserName%>' LabelWidth=""
                                        Enabled="true">
                                    </owc:OwTextBox>
                                </td>
                            </tr>
                            <tr>
                                <td class="leftcolumn">
                                    <owc:OwR ID="TitleLabelOwR" runat="server" OwText="TitleLabel" />
                                </td>
                                <td>
                                    <owc:OwTextBox SkinID="OwTextBox" ID="txtTitle" runat="server" Width="680px" OwDefaultValue=""
                                        OwUsedForEdit="False" Text='<%# Bind("Title") %>' LabelWidth="">
                                    </owc:OwTextBox>
                                    <asp:RequiredFieldValidator Text="*" ID="RequiredFieldValidator1" runat="server"
                                        ErrorMessage=" <%$ OwR: TitleNotEmpty %>" ControlToValidate="txtTitle"></asp:RequiredFieldValidator>
                                </td>
                            </tr>
                            <tr>
                                <td>
                                    <owc:OwR ID="OwContentLabel" runat="server" OwText="ContentLabel" />
                                </td>
                                <td>
                                    <owc:OwEditor ID="txtDetail" runat="server" OwStoragePlace="Common" Style="position: relative;"
                                        SkinID="OwEditorFull" Content='<%# Bind("Description") %>' OwBindValue='<%# Bind("Description") %>'>
                                    </owc:OwEditor>
                                    <asp:RequiredFieldValidator Text="*" ID="RequiredFieldValidator3" runat="server"
                                        ControlToValidate="txtDetail" ErrorMessage=" <%$ OwR: DetailNotEmpty %>"></asp:RequiredFieldValidator>
                                </td>
                            </tr>
                        </table>
                    </div>
                </fieldset>
                <fieldset>
                    <legend>
                        <owc:OwR ID="OptionLabel" runat="server" OwText="OptionLabel"></owc:OwR>
                    </legend>
                    <div>
                        <table width="100%">
                            <tr>
                                <td>
                                    <owc:OwR ID="OwSendPingBack" runat="server" OwText="SendPingback"></owc:OwR>
                                </td>
                                <td>
                                    <owc:OwCheckBox ID="AllowSendPingbackTrackbackCbb" runat="server" Checked='<%# Bind("AllowSendPingbackTrackback") %>' />
                                </td>
                            </tr>
                            <tr>
                                <td>
                                    <owc:OwR ID="OwReceivePingback" runat="server" OwText="ReceivePingback"></owc:OwR>
                                </td>
                                <td>
                                    <owc:OwCheckBox ID="AllowReceivePingbackTrackbackCbb" runat="server" Checked='<%# Bind("AllowReceivePingbackTrackback") %>' />
                                </td>
                            </tr>
                            <tr>
                                <td>
                                    <owc:OwR ID="IsDeletedOwR" runat="server" OwText="IsDeleted" />
                                </td>
                                <td>
                                    <owc:OwCheckBox runat="server" ID="IsDeletedChk" Checked='<%# Bind("IsDeleted") %>' />
                                </td>
                            </tr>
                        </table>
                    </div>
                </fieldset>
                <br />
                <br />
                <br />
            </InsertItemTemplate>
            <EditItemTemplate>
                <fieldset>
                    <legend>
                        <owc:OwR ID="GeneralInfo" runat="server" OwText="GeneralInfo"></owc:OwR>
                    </legend>
                    <div>
                        <owac:OwDetailCommonGroup ID="DetailCommonGroup" OwBindLanguageValue='<%# Bind("LanguageCode") %>'
                            OwBindNetworkValue='<%# Bind("NetWorkID") %>' OwBindPortalValue='<%# Bind("PortalID") %>'
                            OwAuthorVisible="false" OwSourceVisible="false" OwWardLocalityVisible="false"
                            OwBindCategoryValue='<%#Bind("CategoryID") %>' runat="server"></owac:OwDetailCommonGroup>
                    </div>
                </fieldset>
                <fieldset>
                    <legend><span>
                        <owc:OwR ID="InfoLabel" runat="server" OwText="InfoLabel"></owc:OwR>
                    </span></legend>
                    <div>
                        <table width="100%">
                            <tr>
                                <td class="leftcolumn">
                                    <owc:OwR ID="OwUserName" runat="server" OwText="UserName" />
                                </td>
                                <td>
                                    <owc:OwTextBox SkinID="OwTextBox" ID="Usertxt" runat="server" OwDefaultValue="<%#Membership.GetUser().ProviderUserKey %>"
                                        OwUsedForEdit="False" Text='<%#Membership.GetUser().UserName%>' LabelWidth=""
                                        Enabled="false">
                                    </owc:OwTextBox>
                                </td>
                            </tr>
                            <tr>
                                <td class="leftcolumn">
                                    <owc:OwR ID="TitleLabelOwR" runat="server" OwText="TitleLabel" />
                                </td>
                                <td>
                                    <owc:OwTextBox SkinID="OwTextBox" ID="txtTitle" runat="server" Width="680px" OwDefaultValue=""
                                        OwUsedForEdit="False" Text='<%# Bind("Title") %>' LabelWidth="">
                                    </owc:OwTextBox>
                                    <asp:RequiredFieldValidator Text="*" ID="RequiredFieldValidator1" runat="server"
                                        ErrorMessage=" <%$ OwR: TitleNotEmpty %>" ControlToValidate="txtTitle"></asp:RequiredFieldValidator>
                                </td>
                            </tr>
                            <tr>
                                <td>
                                    <owc:OwR ID="OwContentLabel" runat="server" OwText="ContentLabel" />
                                </td>
                                <td>
                                    <owc:OwEditor ID="txtDetail" runat="server" OwStoragePlace="Common" Style="position: relative;"
                                        SkinID="OwEditorFull" Content='<%# Bind("Description") %>' OwBindValue='<%# Bind("Description") %>'>
                                    </owc:OwEditor>
                                    <asp:RequiredFieldValidator Text="*" ID="RequiredFieldValidator3" runat="server"
                                        ControlToValidate="txtDetail" ErrorMessage=" <%$ OwR: DetailNotEmpty %>"></asp:RequiredFieldValidator>
                                </td>
                            </tr>
                        </table>
                    </div>
                </fieldset>
                <fieldset>
                    <legend>
                        <owc:OwR ID="OptionLabel" runat="server" OwText="OptionLabel"></owc:OwR>
                    </legend>
                    <div>
                        <table width="100%">
                            <tr>
                                <td>
                                    <owc:OwR ID="OwSendPingBack" runat="server" OwText="SendPingback"></owc:OwR>
                                </td>
                                <td>
                                    <owc:OwCheckBox ID="AllowSendPingbackTrackbackCbb" runat="server" Checked='<%# Bind("AllowSendPingbackTrackback") %>' />
                                </td>
                            </tr>
                            <tr>
                                <td>
                                    <owc:OwR ID="OwReceivePingback" runat="server" OwText="ReceivePingback"></owc:OwR>
                                </td>
                                <td>
                                    <owc:OwCheckBox ID="AllowReceivePingbackTrackbackCbb" runat="server" Checked='<%# Bind("AllowReceivePingbackTrackback") %>' />
                                </td>
                            </tr>
                            <tr>
                                <td>
                                    <owc:OwR ID="IsDeletedOwR" runat="server" OwText="IsDeleted" />
                                </td>
                                <td>
                                    <owc:OwCheckBox runat="server" ID="IsDeletedChk" Checked='<%# Bind("IsDeleted") %>' />
                                </td>
                            </tr>
                        </table>
                    </div>
                </fieldset>
                <br />
                <br />
                <br />
            </EditItemTemplate>
        </asp:TemplateField>
        <asp:TemplateField ShowHeader="False">
            <EditItemTemplate>
                <fieldset style="position: fixed; bottom: 0px; right: 0px; width: 100%">
                    <legend>
                        <asp:Label ID="Label4" runat="server" EnableViewState="false" Text="<%$ OwR: Action %>" /></legend>
                    <owc:OwButton ID="EditUpdateThenCloseButton" runat="server" CommandName="Update"
                        Text='<%$OwR:Update %>' OnClientClicking="showNotification">
                    </owc:OwButton>
                    &nbsp;
                    <owc:OwConfirmButton ID="EditDeleteButton" runat="server" CausesValidation="True"
                        CommandName="Delete" Text="<%$OwR:Delete %>" SkinID="OwConfirmButton">
                    </owc:OwConfirmButton>
                    &nbsp;<owc:OwButton ID="EditCancelButton" runat="server" CausesValidation="False"
                        CommandName="Cancel" Text="<%$OwR:Cancel %>">
                    </owc:OwButton>
                </fieldset>
            </EditItemTemplate>
            <InsertItemTemplate>
                <fieldset style="position: fixed; bottom: 0px; right: 0px; width: 100%">
                    <legend>
                        <asp:Label ID="Label4" runat="server" EnableViewState="false" Text="<%$ OwR: Action %>" /></legend>
                    <owc:OwButton ID="InsertInsertButton" runat="server" CommandName="Insert" Text="<%$OwR:Insert %>"
                        OnClientClicking="showNotification">
                    </owc:OwButton>
                    &nbsp;<owc:OwButton ID="InsertCancelButton" runat="server" CausesValidation="False"
                        CommandName="Cancel" Text="<%$OwR:Cancel %>">
                    </owc:OwButton>
                </fieldset>
            </InsertItemTemplate>
        </asp:TemplateField>
    </Fields>
</owc:OwDetailsView>
<owc:OwObjectDataSource ID="BlogEditOds" runat="server" DataObjectTypeName="Micronet.OpenWeb.Entity.OwBlogsEntity"
    DeleteMethod="OwDelete" InsertMethod="OwInsert" OldValuesParameterFormatString="original_{0}"
    SelectMethod="OwGetEntity" TypeName="Micronet.OpenWeb.Com.BLL.OwBlogsBLL" UpdateMethod="OwUpdate">
    <SelectParameters>
        <asp:QueryStringParameter Name="blogID" QueryStringField="<%$ Ow:OwConstants.QueryString.ID %>" />
    </SelectParameters>
</owc:OwObjectDataSource>
